import request from '@/utils/request'
export function helpType (size) { //问题类型
  return request({
    url: '/cms/helperType',
    method: 'get',
    params : {size}
  })
}

export function helpList (data) {//问答列表
  JSON.stringify(data)
  return request({
    url: '/cms/helperQa',
    method: 'get',
    params : data
  })
}

export function addHelp (data) {//添加问答
  return request({
    url: '/cms/helperQa',
    method: 'post',
    data
  })
}

export function upHelp (data) {//修改问答
  return request({
    url: '/cms/helperQa',
    method: 'put',
    data
  })
}
export function delHelp (id) {//删除问答
  return request({
    url: '/cms/helperQa/'+id,
    method: 'DELETE',
  })
}
// 下面是类目

export function addIssueClass (data) {//添加类目
  return request({
    url: '/cms/helperType',
    method: 'post',
    data
  })
}

export function upIssueClass (data) {//更新类目
  return request({
    url: '/cms/helperType',
    method: 'put',
    data
  })
}
export function delIssueClass (id) {//删除类目
  return request({
    url: '/cms/helperType/'+id,
    method: 'DELETE',
  })
}
 export function issueClassList (data) {//类目列表
    JSON.stringify(data)
   return request({
     url: '/cms/helperType',
     method: 'get',
     params : data
   })
 }
